package com.lantosec.hmrp.modules.system.vo;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import java.io.Serializable;
import com.lantosec.hmrp.modules.system.entity.SysParameter;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 系统参数表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysParameter对象", description="系统参数表")
public class SysParameterVO extends BaseVO<SysParameter> {
    private static final long serialVersionUID = 1L;


    public SysParameterVO(SysParameter entity){
        this.paraName = entity.getParaName();
        this.paraValue = entity.getParaValue();
        this.paraType = entity.getParaType();
        this.remark = entity.getRemark();
    }

    @Override
    public SysParameter convertToEntity(){
        return new SysParameter(this);
    }


    @ApiModelProperty(value = "系统参数名(唯一)")
    private String paraName;

    @ApiModelProperty(value = "系统参数值")
    private String paraValue;

    @ApiModelProperty(value = "参数类型(1字符2数字3数组)")
    private Integer paraType;

    @ApiModelProperty(value = "备注说明")
    private String remark;


}
